#ifndef HTMLFORMATHELPER_H
#define HTMLFORMATHELPER_H
#include <QString>
#include <string>
#include <time.h>

enum AddFriendOperation
{
    AddHim  =  0x01,
    AgreeAdd = 0x02,
    DenyAdd  = 0x04,
};

class HtmlFormatHelper
{
public:
    HtmlFormatHelper();
    static QString FormatUserId(const std::string& uid);
    static QString FormatTribeMemberId(const QString& dispName);
    static QString FormatMessageContent(const std::string& msg);
    static QString FormatTime(time_t time);
    static QString FormatSysMsg(const std::string& msg);
    static QString FormatAddedFriendOperation(const std::string& uid, int op);
    static QString FormatPictureMsg(const std::string &picid);
    static QString FormatTribeId(const std::string& tribeName, const std::string& tribeid);
    static QString FormatAllPicturesToHtml(const std::string& inmsg);
};

#endif // HTMLFORMATHELPER_H
